
package Data;

/**
 *
 * @author Philipp Armbruster
 */
public interface Passenger extends java.rmi.Remote {

    /* Set-Methoden */

        /**
        * Setzen einer Kundennummer.
        * @param passengerId (Kundennummer)
        * @throws java.rmi.RemoteException
        */

        public void setPassengerId(int passengerId) throws java.rmi.RemoteException;

        /**
        * Setzen eines Vornamens.
        * @param firstName (Vorname)
        * @throws java.rmi.RemoteException
        */

        public void setFirstName(String firstName) throws java.rmi.RemoteException;

        /**
        * Setzen eines Nachnamens.
        * @param lastName (Nachnamen)
        * @throws java.rmi.RemoteException
        */

        public void setLastName(String lastName) throws java.rmi.RemoteException;

        /**
        * Setzen einer Straßenanschrift.
        * @param street (Straßenanschrift)
        * @throws java.rmi.RemoteException
        */

        public void setStreet(String street) throws java.rmi.RemoteException;

        /**
        * Setzen einer Postleitzahl.
        * @param postcode (Postleitzahl)
        * @throws java.rmi.RemoteException
        */

        public void setPostcode(int postcode) throws java.rmi.RemoteException;

        /**
        * Setzen eines Wohnortes.
        * @param city (Wohnort)
        * @throws java.rmi.RemoteException
        */

        public void setCity(String city) throws java.rmi.RemoteException;



    /* Get-Methoden */

        /**
        * Auslesen der Kundennummer.
        * @return Kundennummer
        * @throws java.rmi.RemoteException
        */

        public int getPassengerId() throws java.rmi.RemoteException;

        /**
        * Auslesen des Vornamens.
        * @return Vorname
        * @throws java.rmi.RemoteException
        */

        public String getFirstName() throws java.rmi.RemoteException;

        /**
        * Auslesen des Nachnamens.
        * @return Nachname
        * @throws java.rmi.RemoteException
        */

        public String getLastName() throws java.rmi.RemoteException;

        /**
        * Auslesen der Straßenanschrift.
        * @return Straßenanschrift
        * @throws java.rmi.RemoteException
        */

        public String getStreet() throws java.rmi.RemoteException;

        /**
        * Auslesen der Postleitzahl.
        * @return Postleitzahl
        * @throws java.rmi.RemoteException
        */

        public int getPostcode() throws java.rmi.RemoteException;

        /**
        * Auslesen des Wohnortes.
        * @return Wohnort
        * @throws java.rmi.RemoteException
        */

        public String getCity() throws java.rmi.RemoteException;
        
}
